package com.zimin.cloud.file.api;

import com.zimin.shared.pojo.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.multipart.MultipartFile;

/**
 * @author zimin
 * @since 2021/10/27 6:01 下午
 */
@FeignClient(value = IBaseFileFeign.SERVER_NAME)
public interface IFileUploadFeign {

    /**
     * 上传文件
     */
    @PostMapping(value = "/file/uploadImage", consumes = MediaType.MULTIPART_FORM_DATA_VALUE)
    Result uploadFile(@RequestPart(value = "file") MultipartFile multipartFile);


}
